
{%include file="header.html" %} 
<div class="break"></div>



<div class="break_10"></div>

<div class="warp">
<div class="fm960 clearfix" id="body">

							{%include file="user/user_content_top.html" %} 
				
				<div id="content_body">
					<div style="padding-bottom:10px;" class="zone_toolbar">
        <a class="fl new_btn" href="/album/newalbum/" title="创建新专辑">创建新专辑</a>
    	<p class="fl zone_toolbar_nav">
		排序：<a class="active" title="最新" href="/u/1aix38/album/1/own/new">最新</a>
		   <a title="最热" href="/u/1aix38/album/1/own/hot">最热</a>
    
	</p>
    	<ul class="zone_toolbar_nav2 fr clearfix">
		<li>
							<a href="/u/1aix38/album/1/followed">我推荐的</a>
					</li>
		<li>
							<a href="/u/1aix38/album/1/followedu">关注的人</a>
					</li>
		<li>
							我发表的
					</li>
	</ul>
    </div>
			<ul class="albumList">
			
				

			{%section name=count loop=$g_show.list%}
			<li class="piece album">
			<div class="piece_hd">
				<b class="hl"></b>
				<b class="hr"></b>
			</div>
			<div style="position:relative;" class="piece_bd">
				<p class="info">
									<span><a href="/album/my_detail.php?id={%$g_show.list[count].id%}">编辑</a></span>
					<span><a href="javascript:;" aid="14hggs" class="album_del" value="{%$g_show.list[count].id%}">删除</a></span>
								</p>
                    				<ul class="img-list">
				
				<li><a href="/album/show/14hggs" class="add_img" target="_blank"><img src="{%if $g_show.list[count].pic1%}{%$g_show.list[count].pic1%}{%else%}/images/base/none_pic_v3.png{%/if%}"></a></li>
				
				<li><a href="/album/show/14hggs" class="add_img" target="_blank"><img src="{%if $g_show.list[count].pic2%}{%$g_show.list[count].pic2%}{%else%}/images/base/none_pic_v3.png{%/if%}"></a></li>
				
				<li><a href="/album/show/14hggs" class="add_img" target="_blank"><img src="{%if $g_show.list[count].pic3%}{%$g_show.list[count].pic3%}{%else%}/images/base/none_pic_v3.png{%/if%}"></a></li>
				<li><a href="/album/show/14hggs" class="add_img" target="_blank"><img src="{%if $g_show.list[count].pic4%}{%$g_show.list[count].pic4%}{%else%}/images/base/none_pic_v3.png{%/if%}"></a></li>
				
				</ul>


				<a href="/album/show/14hggs" target="_blank"><h3>
				{%$g_show.list[count].title%} 				</h3></a>
			

				<ul class="interact">
					<li class="comment"><a href="/album/show/14hggs" target="_blank"><span class="innum">{%$g_show.list[count].count_status%} </span><span>收录</span></a></li>
					<li class="like"><a href="/album/show/14hggs" target="_blank"><span class="innum">{%$g_show.list[count].count_love%} </span><span>喜欢</span></a></li>
				</ul>
							</div>
			<div class="piece_ft">
				<b class="fl"></b>
				<b class="fr"></b>
			</div>
			</li>
				{%/section%}
				</ul>
		
<!-- 分页 -->
 
	<div class="pagination mt20">
		</div>
			{%$g_show.page_bar%}

				</div>
		</div>
</div>
{%include file="footer.html" %}   

<script>

$(".album_del").bind("click",function(e){

	id = $(e.target).attr("value");
	if(!id)
	{
		YOUXIXIU.MAIN.Tips.Show("请选择一个专辑！");
	}

	if(window.confirm('是否确定删除本专辑')){
      
	  $.ajax({
		type:"post",
		url:"/interface/album/json_user_add_album.php?type=del",
		data:"id="+id,
		dataType:"text",	
		complete:function(xhr,statusText){
			if(statusText == "success"){
				var result = eval("("+xhr.responseText+")");
				if(result.error == 1)
				{
					YOUXIXIU.MAIN.Tips.Show(result.errmsg);
				}
				else
				{
					YOUXIXIU.MAIN.Tips.Show(result.errmsg);
					location.reload();
				}
				
			}else{
				alert("网络传输失败")
			}
		}
	});

   }

	

});
</script>
